﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Site.Models.aspnet_Users>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Liste des joueurs
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>Liste des joueurs</h2>

<table>
    <tr>
        <th></th>
        <th>
            Pseudo
        </th>
        <th>
            Dernière connexion
        </th>
        <th>
            Ville
        </th>
        <th>
            Pays
        </th>
        <th>
            Inscription
        </th>
        <th></th>
    </tr>

<% foreach (var item in Model) { 
       if (item.aspnet_Membership.IsLockedOut == false) {%>
    <tr>    
        <td>
            <img src="<%: Html.DisplayFor(modelItem => item.USER_AVATAR) %>" title="<%: Html.DisplayFor(modelItem => item.UserName) %>"/>
        </td>
        <td>
            <%: Html.ActionLink(item.UserName, "Details", new { id = item.UserId })%>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_LASTCONNECTION) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_CITY) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_COUNTRY) %>
        </td>
        <td>
            <%: Html.DisplayFor(modelItem => item.USER_CREATIONDATE) %>
        </td>
    </tr>
    <% } %>
<% } %>

</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="alerts" runat="server">
</asp:Content>
